package com.zj.weather.base;

import android.content.Context;
import android.graphics.Canvas;

/**
 * Created by zhaojie on 2018/7/23.
 */

public abstract class BaseHolder {

    protected final float canvasWidth, canvasHeight;
    protected final int position;

    public BaseHolder(float canvasWidth, float canvasHeight, int position) {
        this.canvasWidth = canvasWidth;
        this.canvasHeight = canvasHeight;
        this.position = position;
    }

    public abstract void initData(Context context);

    public abstract void updateFrame(Context context, Canvas canvas, float changedAlpha);
}
